From: Steven Hand Date: Thu, 4 Jan 2007 15:08:40 +0000 (+0000) Subject: [XM-TEST] Tweak 06_block-destroy_check_list_pos to allow more time to check X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15422^2~91 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=2ea27d8c999619064bd773ebed712211fd0ea9e3;p=xen.git [XM-TEST] Tweak 06_block-destroy_check_list_pos to allow more time to check block device has gone away from point of view of domain sxp. Signed-off-by: Steven Hand --- diff --git a/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py b/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py index 292db063d6..b9fdc0691b 100644 --- a/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py +++ b/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py @@ -6,7 +6,7 @@ from XmTestLib import * from XmTestLib.block_utils import * -import re +import re, time def checkXmLongList(domain): s, o = traceCommand("xm list --long %s" % domain.getName()) @@ -35,4 +35,8 @@ if not checkXmLongList(domain): block_detach(domain, "xvda1") if checkXmLongList(domain): - FAIL("xm long list does not show that xvda1 was removed") + # device info is removed by hotplug scripts - give them a chance + # to fire (they run asynchronously with us). + time.sleep(1) + if checkXmLongList(domain): + FAIL("xm long list does not show that xvda1 was removed")